package com.subfg.common.entity.common;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "批量的公用写入数据")
public class BatchRecordModel<T> implements Serializable {
    private String daySuffix;
    private T data;
    private List<T> dataList;
    public BatchRecordModel(){}

    public BatchRecordModel(String daySuffix, List<T> dataList) {
        this.daySuffix = daySuffix;
        this.dataList = dataList;
    }
    public BatchRecordModel(List<T> dataList){
        this.dataList = dataList;
    }

    public BatchRecordModel(String daySuffix, T data) {
        this.daySuffix = daySuffix;
        this.data = data;
    }

    public BatchRecordModel(T data) {
        this.data = data;
    }
}
